/* eslint-disable no-useless-constructor */
import React from 'react';
import MouseRenderProps from './MouseRenderProps';
import './mouse-tracker.less';
// import { Button } from 'antd';

export default class MouseTracker extends React.Component {
  constructor(props) {
    super(props);
  }
  render() {
    return (
      <div className={'mouse_trancker_container p20'}>
        {/* <Button type="primary">Button</Button> */}
        <MouseRenderProps
          render={state => {
            return (
              <div>
                <p>鼠标x轴: {state.positionx}</p>
                <p>鼠标y轴: {state.positiony}</p>
              </div>
            );
          }}
        />
      </div>
    );
  }
}
